package com.example.imtoken.extend

import android.view.View

fun View.visibility() {
    this.visibility = View.VISIBLE
}

fun View.invisible() {
    this.visibility = View.INVISIBLE
}

fun View.gone() {
    this.visibility = View.GONE
}

fun View.click(block: (view:View) -> Unit) {
    this.setOnClickListener {
        block(this)
    }
}